package com.proj.service.impl;

import com.proj.bean.User;
import com.proj.dao.ManagerDao;
import com.proj.service.IManagerService;
import com.proj.util.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ManagerServiceImpl implements IManagerService {

    @Autowired
    private ManagerDao managerDao;

    @Override
    public List<User> commonUsers(Page page, String text) {
        return managerDao.commonUsers(page,text);
    }

    @Override
    public int commoncount(String text) {
        return managerDao.commoncount(text);

    }

    @Override
    public List<User> getAllUsers(int id, Page page, String text) {
        return managerDao.getAllUsers(id,page,text);
    }

    @Override
    public int getAllCount(String text) {
        return managerDao.getAllCount(text);
    }

    @Override
    public int powerexchange(int id) {
        return managerDao.powerexchange(id);
    }

    @Override
    public int editUser(User user) {
        return managerDao.editUser(user);
    }

    @Override
    public int chongzhi(int userid) {
        return managerDao.chongzhi(userid);
    }

}
